

local Field = import("./Field.lua");
local Space = commonlib.inherit(Field);

Space:Property("Size", 1); -- 空白数量

function Space:Init(block, opt)
    opt = opt or {};

    opt.type = "field_space";
    opt.value = opt.value or 1;

    Space._super.Init(self, block, opt);

    self:SetSize(tonumber(opt.value));

    return self;
end

function Space:Render()
end

function Space:UpdateWidthHeightUnitCount()
    return self.FIELD_SPACE_WIDTH_UNIT_COUNT, self.FIELD_SPACE_HEIGHT_UNIT_COUNT;
end

function Space:SaveToXmlNode()
    return nil;
end

function Space:LoadFromXmlNode(xmlNode)
end

function Space:IsCanEdit()
    return false;
end

return Space;